package com.hx.vending.controller;

import com.hx.vending.service.ICustomerService;
import com.hx.vending.util.Msg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by Administrator on 2019/1/5.
 * 客户
 */
@Controller
@RequestMapping("/customer")
public class CustomerController {

    @Autowired
    private ICustomerService iCustomerService;

    /**
     * 根据id查询客户信息
     * @param customerId
     * @return
     */
    @PostMapping("/selectCustomerById")
    @ResponseBody
    public Msg selectCustomerById(Integer customerId) {
        return this.iCustomerService.selectCustomerById(customerId);
    }


}
